package pokerantani.v2.linematchers;

import java.util.regex.Pattern;

import pokerantani.v2.LineMatcher;
import pokerantani.v2.RE;


public class TableInfo extends LineMatcher {
	static final Pattern pTableInfos = Pattern.compile("Table '[^']+' \\d+-max Seat #(" + RE.INT + ") is the button");

	public int button;
	
	public boolean match(String line) {
		if(match(line, pTableInfos)) {
			button = groupInt(1);
			return true;
		}
		return false;
	}
}
